home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: netcom.com!sergeboj
- From: sergeboj@netcom.com (Serge Bojoulitch)
- Subject: Re: TYPEDEF help needed
- Message-ID: <sergebojDoAGB8.7oG@netcom.com>
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- X-Newsreader: TIN [version 1.2 PL1]
- References: <Do9J5n.KE7.0.-s@cs.vu.nl>
- Date: Fri, 15 Mar 1996 02:59:32 GMT
- Sender: sergeboj@netcom14.netcom.com
-
- Andre Versteeg (alverste@cs.vu.nl) wrote:
- : What is wrong with the following:
-
- : I like to have an array of structs with a certain name:
-
- : typedef struct Coordinates
- : {
- : int x,y;
-
- : } Coordinates;
-
- : typedef Coordinates[100] CoordinatesList;
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- This is a syntax error, what you need is the following:
-
- typedef Coordinates CoordinatesList[100];
-
- Regards,
-
- Serge Bojoulitch
-
- Disclaimer: any opinions explicitly or implicitly expressed here are
- my own and have nothing to do with those of my employer.
-